import Vue from 'vue'
import Router from 'vue-router'

import admin from '@/components/admin'

import index from '@/components/index'

Vue.use(Router)

const routes=[
  {
    path: '/admin',
    name: 'admin',
    component: admin,
    children:[
      {path:'/',component:index}
    ]
  }
]

const route = new Router({
  routes
})

export default route
